#include "finMessage.h"

#define DEBUG 1

/**
 * Creates a FIN message.
 * @param filename The filename that the sender was sending to the receiver.
 */
void createFinMessage(char * filename) {
	
  unsigned char finMessage[strlen(filename)+ 3];
  finMessage[0] = 0xCC;
  finMessage[1] = 0xEE;
  strcpy(finMessage+2, filename);

  if(DEBUG) {
    printf("\nThe following is the finMessage: ");
    int i;
    for (i = 0; i < strlen(finMessage); i++) {
      printf("%02x", finMessage[i]);
    }
    printf("\n");
  }
}
